package org.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.entity.Category;
import org.example.entity.Note;
import org.example.service.CategoryService;
import org.example.mapper.CategoryMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
* @author 谢娅
* @description 针对表【category】的数据库操作Service实现
* @createDate 2023-12-21 23:25:23
*/
@Service
public class    CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category>
    implements CategoryService{

    @Resource
    private CategoryMapper categoryMapper;

    @Override
    public List<Category> getDimQuery(Map<String, Object> dataMap) {
        return categoryMapper.getDimQuery(dataMap);
    }

    @Override
    public Category getByName(String name) {
        return categoryMapper.getByName(name);
    }
}




